<div class="layui-container" style="width:94%;">
    <form class="layui-form close-dialog" action="/admin/welcome/version_edit_post.html" method="post" style="margin-top:20px;">
        <div class="layui-form-item">
            <label class="layui-form-label">版本号:</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="version" value="{$info.version}" required lay-verify="required" placeholder="请输入版本号">
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">版本描述</label>
            <div class="layui-input-block">
                <textarea name="desc" placeholder="请输入版本描述" class="layui-textarea">{$info.desc}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">下载地址：</label>
            <div class="layui-input-block">
                <input type="text" name="url" value="{$info.url}" placeholder="请输入下载地址" required lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">是否启用：</label>
            <div class="layui-input-inline">
                <php>
                    if($info['status'] == ''){ $info['status'] = 1; }
                </php>
                <input type="checkbox" name="status" value="1" lay-skin="switch" lay-text="启用|禁用" <if condition="$info['status'] eq 1">checked</if> >
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">排序值：</label>
            <div class="layui-input-inline">
                <input type="number" name="listorder" value="{$info.listoder || default=0}" placeholder="请输入排序值" required lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" name="id" value="{$info.id}">
                <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
            </div>
        </div>
    </form>
</div>